From c423da3a2751751004b5fdf7790a5ce3e29e0bae Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 28 Dec 2007 05:43:07 +0000 Subject: [PATCH] Let the sscanf based timestamps be additive on a read. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3039 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/csv_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/csv_util.c b/gpsbabel/csv_util.c index f5dd1df8a..437b8d172 100644 --- a/gpsbabel/csv_util.c +++ b/gpsbabel/csv_util.c @@ -1019,10 +1019,10 @@ xcsv_parse_val(const char *s, waypoint *wpt, const field_map_t *fmp) wpt->creation_time = yyyymmdd_to_time(s); break; case XT_GMT_TIME: - wpt->creation_time = sscanftime(s, fmp->printfc, 1); + wpt->creation_time += sscanftime(s, fmp->printfc, 1); break; case XT_LOCAL_TIME: - wpt->creation_time = sscanftime(s, fmp->printfc, 0); + wpt->creation_time += sscanftime(s, fmp->printfc, 0); break; /* Useful when time and date are in separate fields GMT / Local offset is handled by the two cases above */ -- 2.30.2